<form action="admin" method="post" enctype="multipart/form-data" name="addproduct" id="addproduct" style="margin:0; padding:0" onsubmit="return verifyregisterForm(this)">
    <table width="95%" border="0" align="left" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC" style="font-family: Tahoma; font-size: 10pt; border-collapse:collapse; padding:10px">
        <tbody>
            <tr>
                <td class="bgtitle" colspan="6">
                    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                        <tr>
                            <td width="20">
                                <img src="/templates/images/mui_ten.gif" /></td>
                            <td valign="bottom" class="title">Thêm s?n ph?m</td>
                            <td width="10" valign="bottom">&nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td></td>
            </tr>  
            <tr>
                <td width="10%">Mã s?n ph?m</td>
                <td width="20%">

                    <select id="codeproduct" name="codeprodcut" width="15px">
                        {foreach from=$category1 item=i}
                        <option value="{$i.idcategory}">{$i.categoryname}</option>
                        {/foreach}
                    </select>
                </td>
                <td width="10%">Tên s?n ph?m</td>
                <td width="20%">
                    <input name="productname" type="text" class="box_input" id="productname" size="24">
                </td>                              
                <td width="10%">Hình ?nh</td>
                <td width="20%">
                    <input name="image" type="text" class="box_input" id="image" size="24">
                </td>
                <td width=10% rowspan="4" valign="top">                                           
                    <input type="button" name="button" id="addoneproduct" value="Thêm">                                        
                </td>
            </tr>
            <tr bgcolor="">
                <td rowspan="2">Màu s?c</td>
                <td id="color" rowspan="2">
                    {foreach from=$color item=c}
                    <input type="checkbox" name="color" value="{$c.idcolor}">{$c.colorname}
                    {/foreach}
                </td>
                <td valign="top">B?o hành</td>
                <td>
                    <input name="warranty" type="text" class="box_input" id="warranty" size="24">
                </td>
                <td valign="top">S? lu?ng</td>
                <td>
                    <input name="number" type="text" class="box_input" id="number" size="24">
                </td>
            </tr>
            <tr bgcolor="">

                <td valign="top">Giá bán</td>
                <td>
                    <input name="priece" type="text" class="box_input" id="priece" size="24">
                </td>
                <td valign="top">Giá nh?p</td>
                <td>
                    <input name="promotion" type="text" class="box_input" id="promotion" size="24">
                </td>
            </tr>
            <tr bgcolor=""> 
                <td valign="top">Khuy?n mãi</td>
                <td valign="top">
                    <input name="priece_company" type="text" class="box_input" id="priecr_company" size="24">
                </td>
                <td valign="top">Chi ti?t s?n ph?m</td>
                <td colspan="4">
                    <textarea rows="4" cols="72" id="productdetail" name="productdetail">gegsagaagar</textarea>                                   
                </td>

            </tr>

        </tbody>
    </table> 
</form>